import java.util.List;
public class PackageNum {
    public static int packageNum(int classNum, List<Packages> packages){
        int i = 0;

        for(Packages pack : packages){
            if(classNum > pack.width){
                i++;
            }else {
                break;
            }
        }
        return i;
    }
}
